<template>
	<view>
		<view class="mask" v-if="isLoading"></view>
		<view class="loading-box" v-if="isLoading">
			<u-loading color="#55B2D8" mode="circle" class="loading" :show="isLoading?isLoading:false"></u-loading>
		</view>
	</view>
</template>

<script>
	export default {
		name: "loading",
		props:{
			isLoading:Boolean
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
	.mask {
		width: 750rpx;
		height: 100%;
		background-color: #F6F7F8;
		position: fixed;
		top: 0;
		z-index: 1100;
		opacity: 0.7;
	}

	.loading-box {
		width: 750rpx;
		height: 100%;
		position: fixed;
		top: 0;
		z-index: 1200;
		.loading {
			position: relative;
			top: 50%;
			left: 50%;
			
		}
	}
</style>
